package dao.impl;

import dao.PetDao;
import entity.Pet;
import org.springframework.stereotype.Repository;

//@Component("petDao")
@Repository("petDaoMySQL")
/*实现类*/
public class PetDaoMySQLImpl implements PetDao {
    @Override
    public int insert(Pet pet) {
        System.out.println("将宠物“"+pet.getPetName()+"”插入到MySQL数据库");
        return 1;
    }
}
